<%-- 
    Document   : cliente
    Created on : 26/04/2012, 11:01:25
    Author     : guardezi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cadastrar Cliente</title>
    <style type='text/css'>
        body { 
            background-image: url('img1.jpg');
            /*background-repeat: no-repeat;
            backgroubd-position: center;*/
        }
        h1{
            color: #FFCC33;
        }
    </style>

</head>
<body align="center">
    <h1 align="center">${cadastrocliente}</h1><hr/><hr/><hr/>
	
	<form action="<c:url value="/gravarCliente" />" method="post">
            <table border=1 bgcolor="#FFCC33" align="center">
            <tr>
                <td> CPF:</td>
                <td><input required="true" name="c.cliCpf" /></td>
            </tr>
            <tr>
                <td>Nome:</td>
                <td><input required="true" name="c.cliNome" /></td>
            </tr>
            <tr>
                <td>RG: </td>
                <td><input required="true" name="c.cliRg" /> </td>
            </tr>
            <tr>
                <td>Fone:</td>
                <td><input required="true" name="c.cliFone" /> </td>
            </tr>
            <tr>
                <td colspan=2 align="right"> <input type="submit" value="Cadastrar" /></td>
            </tr>
            </table>
	</form><hr/><hr/><hr/>
    
        
        <c:forEach items="${clienteList}" var="c">
            CpF: ${c.cliCpf }  <br/>
            NOME: ${c.cliNome } <br/>
            RG: ${c.cliRg } <br/>
            FONE: ${c.cliFone }<br/>
            <a href="<c:url value="/excluir/${c.cliCpf }"/>">excluir</a>
        -------------------------------------</br>
	</c:forEach> 
        <hr/>
        <a  href="<c:url value="/index"/>">Pagina Inicial</a><br/>  
        
</body>
</html>